import request from '@/utils/request'
//知识点管理接口
export function sysKnowledgeQuery(data) {
  //知识点管理信息分页列表
  return request({
    method: 'get',
    url: '/sysKnowledge/query',
    params: data,
  })
}

export function sysKnowledgeQueryById(id) {
  //查询一条知识点管理信息
  return request({
    method: 'get',
    url: '/sysKnowledge/query/' + id,
  })
}

export function sysKnowledgeAdd(data) {
  //添加一条知识点管理信息
  return request({
    method: 'post',
    url: '/sysKnowledge/add',
    data,
  })
}

export function sysKnowledgeDelete(id) {
  //删除一条知识点管理信息
  return request({
    method: 'get',
    url: '/sysKnowledge/delete/' + id,
  })
}

export function sysKnowledgeUpdate(data) {
  //修改一条知识点管理信息
  return request({
    method: 'post',
    url: '/sysKnowledge/update',
    data,
  })
}

export function sysKnowledgeQueryKnowledgeRelation(data) {
  //根据课程id查询查询相关的章节知识点信息
  return request({
    method: 'get',
    url: '/sysKnowledge/queryKnowledgeRelation',
    params: data,
  })
}

export function openApiSysKnowledgeQuery(data) {
  //知识点管理信息分页列表
  return request({
    method: 'get',
    url: '/openApi/sysKnowledge/query',
    params: data,
  })
}
